package com.example.gobang.service;

import com.example.gobang.mapper.UserMapper;
import com.example.gobang.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public UserInfo selectByName(String userName) {
        return userMapper.selectByName(userName);
    }

    public int insert(UserInfo userInfo) {
        return userMapper.insert(userInfo);
    }
}
